import { ref } from 'vue'
import { PersonEdit } from '../components/typing'

export function usePersonEditDialogHook() {
  const PersonEditDialogVisible = ref<boolean>(false)
  const initData = ref<PersonEdit>()
  function onShowPersonEditDialog(d?: PersonEdit) {
    initData.value = d
    PersonEditDialogVisible.value = true
  }
  return { onShowPersonEditDialog, PersonEditDialogVisible, initData }
}
